package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Answer;
import cn.wolfcode.trip.base.domain.Question;
import cn.wolfcode.trip.base.query.QueryObject;

import java.util.List;

public interface IAnswerService {
    void savaOrUpdate(Answer answer,Long questinoId);

    void delete(Long id);

    List<Answer> listAll();

    List<Answer> getAnswerByQuestionId(Long questionId);

    Answer get(Long answerId);

    List<Answer> queryForList(QueryObject qo);
}
